export function Log(...args) {
  if (import.meta.env.DEV) {
    console.log.apply(console, args);
  }
}

export function TagLog(...args) {
  if (import.meta.env.DEV) {
    console.log.apply(console, ["=============>"].concat(args));
  }
}

export function handleLog(disabled: boolean, isTag?: boolean) {
  if (disabled) {
    return function () {};
  } else {
    return isTag ? TagLog : Log;
  }
}
